package com.team.recruitment_management_system.service;

import com.team.recruitment_management_system.pojo.dto.message.AddChangeMessageDto;
import com.team.recruitment_management_system.pojo.entity.ChatMessage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.team.recruitment_management_system.pojo.vo.chat.ChatMessageVo;
import com.team.recruitment_management_system.util.result.Result;

import java.util.List;

/**
* @author 86147
* @description 针对表【chat_message(聊天消息表)】的数据库操作Service
* @createDate 2024-03-21 20:28:40
*/
public interface ChatMessageService extends IService<ChatMessage> {
    Result<Void> addChatMessage(AddChangeMessageDto addChangeMessageDto);

    List<ChatMessageVo> getAll(String currentUsername, String recipientUsername);
}
